import {
	request
} from "@/utils/request";
// 获取banner
export function getBanner(data) {
	return request({
		url: "/common/banner",
		method: "get",
		data: data,
	});
}

// 获取最新供需
export function new_Task(data) {
	return request({
		url: "/task/index",
		method: "get",
		data: data,
	});
}

// 获取全部供需列表
export function task_list(data) {
	return request({
		url: "/task/list",
		method: "get",
		data: data,
	});
}
// 获取供需详情
export function task_info(data) {
	return request({
		url: "/task/info",
		method: "get",
		data: data,
	});
}

// 获取推荐课程
export function course_index(data) {
	return request({
		url: "/course/index",
		method: "get",
		data: data,
	});
}

// 获取供应商列表
export function companyList(data) {
	return request({
		url: "/user/companyList",
		method: "get",
		data: data,
	});
}

// 获取供应商详情
export function companyDetail(data) {
	return request({
		url: "/user/company",
		method: "get",
		data: data,
	});
}

// 发布供需
export function saveTask(data) {
	return request({
		url: "/task/save",
		method: "post",
		data: data,
	});
}

// 修改供需
export function updateTask(data) {
	return request({
		url: "/task/update",
		method: "post",
		data: data,
	});
}

// 删除供需
export function delTask(data) {
	return request({
		url: "/task/del",
		method: "post",
		data: data,
	});
}

// 供需状态
export function auditCount(data) {
	return request({
		url: "/user/auditCount",
		method: "get",
		data: data,
	});
}

// 我的供需
export function taskList(data) {
	return request({
		url: "/user/taskList",
		method: "get",
		data: data,
	});
}